<template>
    <div>
        <h2 class="title">{{message}}</h2>
        <button @click="btnClick">按钮</button>
        <h2>{{name}}</h2>
        <Cpn></Cpn>
    </div>
</template>

<script>

import Cpn from './Cpn.vue'

export default {
    name: "App",
    data() {
        return {
            message: 'hello Webpack Vue!',
            name: 'zhanghang'
        }
    },
    components: {
        Cpn
    },
    methods: {
        btnClick() {
            console.log("aaaaaa")
        }
    },
}
</script>

<style scoped>
    .title {
        color: blue;
    }
</style>